import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store =new Vue.Store({
    //保存数据
    state:{
        movies:[
            {id:0,title:"姜子牙"},
            {id:1,title:"流浪地球"},
            {id:2,title:"美人鱼"}
        ]
    },
    //同步修改数据
    mutations:{},
    //异步操作
    actions:{},
    //计算属性
    getters:{}
})
export default store;